module BugListsHelper

  # change the look of the display_name column 
  def display_name_column(record)
    '<font color="#' + record.display_name_color + '">' + record.display_name + '</font>'
   end 
   
   # change the look and feel of the projections column depending 
   # on the logged in user
   def use_projections_column(record)
     if record.use_projections
       
        if record.project.is_logged_in_project_administrator?
          link_to("view/edit", :controller => "projections", :id => record.id, :action => "index_for_bug_list" )
        else
          link_to("view", :controller => "projections", :id => record.id, :action => "index_for_bug_list" )
        end
      else
        "off"
      end
    end
     
       
end
